/**
 * Description
 *
 * Creation Date 18/10/2017
 * @author Candy
 */
import { getUser } from '../service/getData'
import { GET_USERINFO } from './mutation-types'

export default {
  async getUserInfo({commit, state}) {
    let res = await getUser().then(res => res.data)
    commit(GET_USERINFO, res)
  }
}
